{template header}
<div class="event">
	<div class="event_box">
		<div class="event_icon">
			<a href="#" ><img src="{$event['poster']}"  ></a>
		</div>
		<div class="event_items">
			<dl>
				<dt class="gray">活动主题:</dt>
				<dd>{$event['title']}</dd>
				<dt class="gray">开始时间:</dt>
				<dd>{$event['format_starttime']}</dd>
				<dt class="gray">活动地点:</dt>
				<dd>{$event['location']}</dd>
		<!--		<dt class="gray">性别:</dt>
				<dd>{$event['gender']}</dd>			-->
				<dt class="gray">每人花销:</dt>
				<dd>{$event['cost']}元</dd>
				<dt class="gray">已报名人数:</dt>
				<dd><span class="num">{$event['follownum']}</span>人 </dd>
				<dt class="gray">剩余名额:</dt>
				<dd>{$event['remainnum']}人</dd>
				<dt class="gray">报名截止:</dt>
				<dd>{$event['format_endtime']}</dd>
			</dl>
			<ul class="buttons">
				<input type="hidden" id="eventid"  value="$event['id']"/>
					<!--{if $isapply}-->
						<span class="red">本活动您已报名。</span>
					<!--{else}-->
						<input class="btn" id="mysupply" type="button" value="我要参加"/>
					<!--{/if}-->
					<!--{if $event['uid']==$user['uid']}-->
						<input class="btn" id="mymanage" type="button" value="管理活动"/>
					<!--{/if}-->
			</ul>
		</div>
	</div>
	<div class="event_box">
		<div class="event_content">
		</div>
	{$event['detail']}
	</div>
</div>
<script type="text/javascript">
$(document).ready(function () {
	var eventid=$('#eventid').val();
  	$("#mysupply").click(function(){ 
  		window.location="index.php?c=user&a=supply&id="+eventid;
  	});
  	$("#mymanage").click(function(){ 
  		window.location="index.php?c=event&a=members&id="+eventid;
  	}); 
});
</script>
{template footer}